
package org.springxrsk.modules.schedule.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.schedule.pojo.entity.QyScheduleEntity;
import org.springxrsk.modules.schedule.pojo.vo.QyScheduleVO;
import java.util.Objects;

/**
 * 课表 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-15
 */
public class QyScheduleWrapper extends BaseEntityWrapper<QyScheduleEntity, QyScheduleVO>  {

	public static QyScheduleWrapper build() {
		return new QyScheduleWrapper();
 	}

	@Override
	public QyScheduleVO entityVO(QyScheduleEntity qySchedule) {
		QyScheduleVO qyScheduleVO = Objects.requireNonNull(BeanUtil.copyProperties(qySchedule, QyScheduleVO.class));

		//User createUser = UserCache.getUser(qySchedule.getCreateUser());
		//User updateUser = UserCache.getUser(qySchedule.getUpdateUser());
		//qyScheduleVO.setCreateUserName(createUser.getName());
		//qyScheduleVO.setUpdateUserName(updateUser.getName());

		return qyScheduleVO;
	}


}
